package com.hunt.service.app.impl;

import com.hunt.dao.QuotationsFinancialMapper;
import com.hunt.model.app.QuotationsFinancial;
import com.hunt.model.app.QuotationsFinancialPlus;
import com.hunt.service.app.QuotationsFinancialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class QuotationsFinancialServiceImpl implements QuotationsFinancialService {

    @Autowired
    private QuotationsFinancialMapper quotationsFinancialMapper;

    @Override
    public QuotationsFinancial getQuotationFinancialByStockCode(String stockCode) {
        return quotationsFinancialMapper.getQuotationFinancialByStockCode(stockCode);
    }

    @Override
    public Integer saveOrUpdateQuotationFinancial(QuotationsFinancial quotationsFinancial) {
        return quotationsFinancialMapper.saveOrUpdateQuotationFinancial(quotationsFinancial);
    }

    @Override
    public Integer saveOrUpdateFinancialPlus(QuotationsFinancialPlus financialPlus) {
        return quotationsFinancialMapper.saveOrUpdateFinancialPlus(financialPlus);
    }

    @Override
    public QuotationsFinancialPlus getFinancialPlusByStockCode(String s) {
        return quotationsFinancialMapper.getFinancialPlusByStockCode(s);
    }
}
